<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: gstBufferManager Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classgstBufferManager.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classgstBufferManager-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">gstBufferManager Class Reference<div class="ingroups"><a class="el" href="group__util.html">Utilities Library (jetson-utils)</a> &raquo; <a class="el" href="group__codec.html">Codec</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classgstBufferManager.html" title="gstBufferManager recieves GStreamer buffers from appsink elements and unpacks/maps them into CUDA add...">gstBufferManager</a> recieves GStreamer buffers from appsink elements and unpacks/maps them into CUDA address space, and handles colorspace conversion into RGB format.  
 <a href="classgstBufferManager.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="gstBufferManager_8h_source.html">gstBufferManager.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8d0c7f6ad4fad98bca732caa255eb94c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#a8d0c7f6ad4fad98bca732caa255eb94c">gstBufferManager</a> (<a class="el" href="structvideoOptions.html">videoOptions</a> *options)</td></tr>
<tr class="memdesc:a8d0c7f6ad4fad98bca732caa255eb94c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="classgstBufferManager.html#a8d0c7f6ad4fad98bca732caa255eb94c">More...</a><br /></td></tr>
<tr class="separator:a8d0c7f6ad4fad98bca732caa255eb94c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12abb8d449269f24ade36c787fab1bd3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#a12abb8d449269f24ade36c787fab1bd3">~gstBufferManager</a> ()</td></tr>
<tr class="memdesc:a12abb8d449269f24ade36c787fab1bd3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor.  <a href="classgstBufferManager.html#a12abb8d449269f24ade36c787fab1bd3">More...</a><br /></td></tr>
<tr class="separator:a12abb8d449269f24ade36c787fab1bd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cd180e308002d209ec400f5c9966ebe"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#a8cd180e308002d209ec400f5c9966ebe">Enqueue</a> (GstBuffer *buffer, GstCaps *caps)</td></tr>
<tr class="memdesc:a8cd180e308002d209ec400f5c9966ebe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enqueue a GstBuffer from GStreamer.  <a href="classgstBufferManager.html#a8cd180e308002d209ec400f5c9966ebe">More...</a><br /></td></tr>
<tr class="separator:a8cd180e308002d209ec400f5c9966ebe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8525516c138938ed7c5d794f956297b1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#a8525516c138938ed7c5d794f956297b1">Dequeue</a> (void **output, <a class="el" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> format, uint64_t timeout=UINT64_MAX)</td></tr>
<tr class="memdesc:a8525516c138938ed7c5d794f956297b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Dequeue the next frame.  <a href="classgstBufferManager.html#a8525516c138938ed7c5d794f956297b1">More...</a><br /></td></tr>
<tr class="separator:a8525516c138938ed7c5d794f956297b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9416f0ffbcd3bee21e909fbd174c3436"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#a9416f0ffbcd3bee21e909fbd174c3436">GetLastTimestamp</a> () const</td></tr>
<tr class="memdesc:a9416f0ffbcd3bee21e909fbd174c3436"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get timestamp of the latest dequeued frame.  <a href="classgstBufferManager.html#a9416f0ffbcd3bee21e909fbd174c3436">More...</a><br /></td></tr>
<tr class="separator:a9416f0ffbcd3bee21e909fbd174c3436"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a850ecaaeb9a220bd42e718f93ecb8ae4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#a850ecaaeb9a220bd42e718f93ecb8ae4">GetRawFormat</a> () const</td></tr>
<tr class="memdesc:a850ecaaeb9a220bd42e718f93ecb8ae4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get raw image format.  <a href="classgstBufferManager.html#a850ecaaeb9a220bd42e718f93ecb8ae4">More...</a><br /></td></tr>
<tr class="separator:a850ecaaeb9a220bd42e718f93ecb8ae4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8653af78fcfd69dd452c01b10ba3277"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#ac8653af78fcfd69dd452c01b10ba3277">GetFrameCount</a> () const</td></tr>
<tr class="memdesc:ac8653af78fcfd69dd452c01b10ba3277"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the total number of frames that have been recieved.  <a href="classgstBufferManager.html#ac8653af78fcfd69dd452c01b10ba3277">More...</a><br /></td></tr>
<tr class="separator:ac8653af78fcfd69dd452c01b10ba3277"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a648c0f76e9eedc9d3483c36b118b2e0d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#a648c0f76e9eedc9d3483c36b118b2e0d">mFormatYUV</a></td></tr>
<tr class="memdesc:a648c0f76e9eedc9d3483c36b118b2e0d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The YUV colorspace format coming from appsink (typically NV12 or YUY2)  <a href="classgstBufferManager.html#a648c0f76e9eedc9d3483c36b118b2e0d">More...</a><br /></td></tr>
<tr class="separator:a648c0f76e9eedc9d3483c36b118b2e0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9bf6538dcf98e4773b6fe2ea28ee8944"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classRingBuffer.html">RingBuffer</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#a9bf6538dcf98e4773b6fe2ea28ee8944">mBufferYUV</a></td></tr>
<tr class="memdesc:a9bf6538dcf98e4773b6fe2ea28ee8944"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ringbuffer of CPU-based YUV frames (non-NVMM) that come from appsink.  <a href="classgstBufferManager.html#a9bf6538dcf98e4773b6fe2ea28ee8944">More...</a><br /></td></tr>
<tr class="separator:a9bf6538dcf98e4773b6fe2ea28ee8944"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea126364b147dd2c7946ba66f64fd3a4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classRingBuffer.html">RingBuffer</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#aea126364b147dd2c7946ba66f64fd3a4">mTimestamps</a></td></tr>
<tr class="memdesc:aea126364b147dd2c7946ba66f64fd3a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ringbuffer of timestamps that come from appsink.  <a href="classgstBufferManager.html#aea126364b147dd2c7946ba66f64fd3a4">More...</a><br /></td></tr>
<tr class="separator:aea126364b147dd2c7946ba66f64fd3a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab07dfcccd8fa8e9e5f0c80ba969bd953"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classRingBuffer.html">RingBuffer</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#ab07dfcccd8fa8e9e5f0c80ba969bd953">mBufferRGB</a></td></tr>
<tr class="memdesc:ab07dfcccd8fa8e9e5f0c80ba969bd953"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ringbuffer of frames that have been converted to RGB colorspace.  <a href="classgstBufferManager.html#ab07dfcccd8fa8e9e5f0c80ba969bd953">More...</a><br /></td></tr>
<tr class="separator:ab07dfcccd8fa8e9e5f0c80ba969bd953"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe9df1a58cf2e4ae57c0239a12cc4aa4"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#abe9df1a58cf2e4ae57c0239a12cc4aa4">mLastTimestamp</a></td></tr>
<tr class="memdesc:abe9df1a58cf2e4ae57c0239a12cc4aa4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Timestamp of the latest dequeued frame.  <a href="classgstBufferManager.html#abe9df1a58cf2e4ae57c0239a12cc4aa4">More...</a><br /></td></tr>
<tr class="separator:abe9df1a58cf2e4ae57c0239a12cc4aa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f62a8198853fdab6da3775b9b879280"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classEvent.html">Event</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#a9f62a8198853fdab6da3775b9b879280">mWaitEvent</a></td></tr>
<tr class="memdesc:a9f62a8198853fdab6da3775b9b879280"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="classEvent.html" title="Event object for signalling other threads.">Event</a> that gets triggered when a new frame is recieved.  <a href="classgstBufferManager.html#a9f62a8198853fdab6da3775b9b879280">More...</a><br /></td></tr>
<tr class="separator:a9f62a8198853fdab6da3775b9b879280"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af216542e690d3be12410c217a09aaed3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structvideoOptions.html">videoOptions</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#af216542e690d3be12410c217a09aaed3">mOptions</a></td></tr>
<tr class="memdesc:af216542e690d3be12410c217a09aaed3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Options of the <a class="el" href="classgstDecoder.html" title="Hardware-accelerated video decoder for Jetson using GStreamer.">gstDecoder</a> / <a class="el" href="classgstCamera.html" title="MIPI CSI and V4L2 camera capture using GStreamer and nvarguscamerasrc or v4l2src elements.">gstCamera</a> object.  <a href="classgstBufferManager.html#af216542e690d3be12410c217a09aaed3">More...</a><br /></td></tr>
<tr class="separator:af216542e690d3be12410c217a09aaed3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac53eb50db281d89d9142576b5adf6d3"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#aac53eb50db281d89d9142576b5adf6d3">mFrameCount</a></td></tr>
<tr class="memdesc:aac53eb50db281d89d9142576b5adf6d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Total number of frames that have been recieved.  <a href="classgstBufferManager.html#aac53eb50db281d89d9142576b5adf6d3">More...</a><br /></td></tr>
<tr class="separator:aac53eb50db281d89d9142576b5adf6d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd5bf5577fd3a1bb129419243dc91d1a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classgstBufferManager.html#abd5bf5577fd3a1bb129419243dc91d1a">mNvmmUsed</a></td></tr>
<tr class="memdesc:abd5bf5577fd3a1bb129419243dc91d1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is NVMM memory actually used by the stream?  <a href="classgstBufferManager.html#abd5bf5577fd3a1bb129419243dc91d1a">More...</a><br /></td></tr>
<tr class="separator:abd5bf5577fd3a1bb129419243dc91d1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classgstBufferManager.html" title="gstBufferManager recieves GStreamer buffers from appsink elements and unpacks/maps them into CUDA add...">gstBufferManager</a> recieves GStreamer buffers from appsink elements and unpacks/maps them into CUDA address space, and handles colorspace conversion into RGB format. </p>
<p>It can handle both normal CPU-based GStreamer buffers and NVMM memory which can be mapped directly to the GPU without requiring memory copies using the CPU.</p>
<p>To disable the use of NVMM memory, set -DENABLE_NVMM=OFF when building with CMake: </p><pre class="fragment">cmake -DENABLE_NVMM=OFF ../
</pre> </div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a8d0c7f6ad4fad98bca732caa255eb94c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d0c7f6ad4fad98bca732caa255eb94c">&#9670;&nbsp;</a></span>gstBufferManager()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gstBufferManager::gstBufferManager </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structvideoOptions.html">videoOptions</a> *&#160;</td>
          <td class="paramname"><em>options</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor. </p>

</div>
</div>
<a id="a12abb8d449269f24ade36c787fab1bd3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12abb8d449269f24ade36c787fab1bd3">&#9670;&nbsp;</a></span>~gstBufferManager()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gstBufferManager::~gstBufferManager </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8525516c138938ed7c5d794f956297b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8525516c138938ed7c5d794f956297b1">&#9670;&nbsp;</a></span>Dequeue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int gstBufferManager::Dequeue </td>
          <td>(</td>
          <td class="paramtype">void **&#160;</td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a>&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint64_t&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>UINT64_MAX</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Dequeue the next frame. </p>
<p>Returns 1 on success, 0 on timeout, -1 on error. </p>

</div>
</div>
<a id="a8cd180e308002d209ec400f5c9966ebe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cd180e308002d209ec400f5c9966ebe">&#9670;&nbsp;</a></span>Enqueue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool gstBufferManager::Enqueue </td>
          <td>(</td>
          <td class="paramtype">GstBuffer *&#160;</td>
          <td class="paramname"><em>buffer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">GstCaps *&#160;</td>
          <td class="paramname"><em>caps</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enqueue a GstBuffer from GStreamer. </p>

</div>
</div>
<a id="ac8653af78fcfd69dd452c01b10ba3277"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8653af78fcfd69dd452c01b10ba3277">&#9670;&nbsp;</a></span>GetFrameCount()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t gstBufferManager::GetFrameCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the total number of frames that have been recieved. </p>

</div>
</div>
<a id="a9416f0ffbcd3bee21e909fbd174c3436"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9416f0ffbcd3bee21e909fbd174c3436">&#9670;&nbsp;</a></span>GetLastTimestamp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t gstBufferManager::GetLastTimestamp </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get timestamp of the latest dequeued frame. </p>

</div>
</div>
<a id="a850ecaaeb9a220bd42e718f93ecb8ae4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a850ecaaeb9a220bd42e718f93ecb8ae4">&#9670;&nbsp;</a></span>GetRawFormat()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> gstBufferManager::GetRawFormat </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get raw image format. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ab07dfcccd8fa8e9e5f0c80ba969bd953"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab07dfcccd8fa8e9e5f0c80ba969bd953">&#9670;&nbsp;</a></span>mBufferRGB</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classRingBuffer.html">RingBuffer</a> gstBufferManager::mBufferRGB</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Ringbuffer of frames that have been converted to RGB colorspace. </p>

</div>
</div>
<a id="a9bf6538dcf98e4773b6fe2ea28ee8944"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9bf6538dcf98e4773b6fe2ea28ee8944">&#9670;&nbsp;</a></span>mBufferYUV</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classRingBuffer.html">RingBuffer</a> gstBufferManager::mBufferYUV</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Ringbuffer of CPU-based YUV frames (non-NVMM) that come from appsink. </p>

</div>
</div>
<a id="a648c0f76e9eedc9d3483c36b118b2e0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a648c0f76e9eedc9d3483c36b118b2e0d">&#9670;&nbsp;</a></span>mFormatYUV</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__imageFormat.html#ga931c48e08f361637d093355d64583406">imageFormat</a> gstBufferManager::mFormatYUV</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The YUV colorspace format coming from appsink (typically NV12 or YUY2) </p>

</div>
</div>
<a id="aac53eb50db281d89d9142576b5adf6d3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac53eb50db281d89d9142576b5adf6d3">&#9670;&nbsp;</a></span>mFrameCount</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t gstBufferManager::mFrameCount</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Total number of frames that have been recieved. </p>

</div>
</div>
<a id="abe9df1a58cf2e4ae57c0239a12cc4aa4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe9df1a58cf2e4ae57c0239a12cc4aa4">&#9670;&nbsp;</a></span>mLastTimestamp</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">uint64_t gstBufferManager::mLastTimestamp</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Timestamp of the latest dequeued frame. </p>

</div>
</div>
<a id="abd5bf5577fd3a1bb129419243dc91d1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abd5bf5577fd3a1bb129419243dc91d1a">&#9670;&nbsp;</a></span>mNvmmUsed</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool gstBufferManager::mNvmmUsed</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Is NVMM memory actually used by the stream? </p>

</div>
</div>
<a id="af216542e690d3be12410c217a09aaed3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af216542e690d3be12410c217a09aaed3">&#9670;&nbsp;</a></span>mOptions</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structvideoOptions.html">videoOptions</a>* gstBufferManager::mOptions</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Options of the <a class="el" href="classgstDecoder.html" title="Hardware-accelerated video decoder for Jetson using GStreamer.">gstDecoder</a> / <a class="el" href="classgstCamera.html" title="MIPI CSI and V4L2 camera capture using GStreamer and nvarguscamerasrc or v4l2src elements.">gstCamera</a> object. </p>

</div>
</div>
<a id="aea126364b147dd2c7946ba66f64fd3a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea126364b147dd2c7946ba66f64fd3a4">&#9670;&nbsp;</a></span>mTimestamps</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classRingBuffer.html">RingBuffer</a> gstBufferManager::mTimestamps</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Ringbuffer of timestamps that come from appsink. </p>

</div>
</div>
<a id="a9f62a8198853fdab6da3775b9b879280"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f62a8198853fdab6da3775b9b879280">&#9670;&nbsp;</a></span>mWaitEvent</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classEvent.html">Event</a> gstBufferManager::mWaitEvent</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p><a class="el" href="classEvent.html" title="Event object for signalling other threads.">Event</a> that gets triggered when a new frame is recieved. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>jetson-utils/<a class="el" href="gstBufferManager_8h_source.html">gstBufferManager.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="classgstBufferManager.html">gstBufferManager</a></li>
    <li class="footer">Generated on Fri Mar 17 2023 14:29:30 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
